﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="MyMovies"
    targetNamespace="http://tempuri.org/MyMovies.xsd"
    elementFormDefault="qualified"
    xmlns="http://tempuri.org/MyMovies.xsd"
    xmlns:mstns="http://tempuri.org/MyMovies.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
  <xs:element name="Title">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="LocalTitle" type="xs:string" minOccurs="0" />
        <xs:element name="OriginalTitle" type="xs:string" minOccurs="0" />
        <xs:element name="SortTitle" type="xs:string" minOccurs="0" />
        <xs:element name="ForcedTitle" type="xs:string" minOccurs="0" />
        <xs:element name="IMDBrating" type="xs:string" minOccurs="0" />
        <xs:element name="ProductionYear" type="xs:string" minOccurs="0" />
        <xs:element name="MPAARating" type="xs:string" minOccurs="0" />
        <xs:element name="Revenue" type="xs:string" minOccurs="0" />
        <xs:element name="Budget" type="xs:string" minOccurs="0" />
        <xs:element name="Added" type="xs:string" minOccurs="0" />
        <xs:element name="IMDbId" type="xs:string" minOccurs="0" />
        <xs:element name="RunningTime" type="xs:string" minOccurs="0" />
        <xs:element name="TMDbId" type="xs:string" minOccurs="0" />
        <xs:element name="CDUniverseId" type="xs:string" minOccurs="0" />
        <xs:element name="Description" type="xs:string" minOccurs="0" />
        <xs:element name="Studios" minOccurs="0" maxOccurs="1">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Studio" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Persons" minOccurs="0" maxOccurs="1">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Person" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Name" type="xs:string" minOccurs="0" />
                    <xs:element name="Type" type="xs:string" minOccurs="0" />
                    <xs:element name="Role" type="xs:string" minOccurs="0" />
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Genres" minOccurs="0" maxOccurs="1">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Genre" minOccurs="0" maxOccurs="unbounded" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
